{include file="public/header" /}
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-member-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>账号：</label>
            <div class="formControls col-xs-8 col-sm-5">
               id： {$data.id} 账号 {$data.username}
            </div>
        </div>

        <br>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资产：</label>
            <div class="formControls col-xs-8 col-sm-8">
                MT余额：<span style="color:#6699FF">{$data.mt}</span><br>
                MT冻结：<span style="color:rgb(208, 211, 12)">{$data.mt_forze}</span><br>
                奖金：<span style="color:#999990">{$data.income} </span> <br>
                合约收益：<span style="color:#999990">{$data.contract_come} </span> <br>
                兑换券：<span style="color:#999990">{$data.volume} </span> <br>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资产：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <span class="select-box">
                    <select name="field_name" class="select">
                        <option value="">选择币种</option>
                        <option value="mt">MT余额</option>
                         <option value="income">奖金</option>
                         <option value="contract_come">合约收益</option>
                         <option value="volume">兑换券</option>
<!--                        <option value="mt_forze">MT冻结</option>-->
                    </select>
                </span>
            </div>
        </div> 

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>数量：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" value="" placeholder="操作数量 +|-100" name="num">
            </div>
        </div> 

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="hidden" name="uid" value="{$data.id}">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

{include file="public/footer" /}
<script type="text/javascript">
$(function(){

    $("#form-member-add").validate({
        rules:{
            username:{
                required:true,
                minlength:2,
                maxlength:16
            },
            nickname:{
                required:true,
            }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
            $(form).ajaxSubmit({
                success:function(data){
                    console.log(data);
                    if(data.status == 'y'){
                        layer.msg("操作成功",{icon:1,time:1000,shade: [0.3, '#000']},function(){
                            var index = parent.layer.getFrameIndex(window.name);
                            parent.location.reload();
                            parent.layer.close(index);
                        });
                    }else{
                        layer.msg(data.info,{icon:2,time:1000,shade: [0.3, '#000']});
                    }
                },
                error:function(error){
                    layer.msg('系统发生了错误',{icon:2,time:3000,shade: [0.5, '#FF0000']});
                }
            });
        }
    });
});
</script> 
